package com.cyf.db.bean;

import java.util.Date;

/**
 * app用户
 * Created by cage on 2017/2/16.
 */
public class User {

    /** 用户权限: 0-pc **/
    public static final int USERAUTH_PC = 0;
    /** 用户权限: 1-易停宝 **/
    public static final int USERAUTH_YTB = 1;
    /** 用户权限: 2-服务app **/
    public static final int USERAUTH_SVRAPP = 2;
    /** 用户权限: 3-两者（易停宝+服务app） **/
    public static final int USERAUTH_BOTH = 3;

    private Integer id;
    private String mobile;
    private Date createdTime;
    // app
    private String token;
    private Integer ebBalance;   // EB余额
    private String version;     // 用户使用的app版本
    private String iosVersion;     // 用户使用的app版本
    private String portraitPath;    // 用户头像保存路径
    // pc端
    private String username;    // 用户名
    private String pwd;         // 密码
    private int gender;         // 性别

    private int userAuth;       // 用户权限 0-pc 1-易停宝 2-服务app 3-两者（易停宝+服务app）
    // toc业务层相关

    private Integer sendStatisMsg; // 是否发送人管平台的统计信息 1是
    private Integer status;         // 状态 1有效 0无效

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Integer getEbBalance() {
        return ebBalance;
    }

    public void setEbBalance(Integer ebBalance) {
        this.ebBalance = ebBalance;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getIosVersion() {
        return iosVersion;
    }

    public void setIosVersion(String iosVersion) {
        this.iosVersion = iosVersion;
    }

    public String getPortraitPath() {
        return portraitPath;
    }

    public void setPortraitPath(String portraitPath) {
        this.portraitPath = portraitPath;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public Integer getSendStatisMsg() {
        return sendStatisMsg;
    }

    public void setSendStatisMsg(Integer sendStatisMsg) {
        this.sendStatisMsg = sendStatisMsg;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public int getUserAuth() {
        return userAuth;
    }

    public void setUserAuth(int userAuth) {
        this.userAuth = userAuth;
    }

}
